﻿@model AP.Framework.Infrastructure.Entities.sys_Param
<script type="text/javascript">
    $(function () {

        $('#file_upload').uploadify({
            'swf': '@Url.Content("~/Content/themes/uploadify/uploadify.swf")',
            'buttonText': '添加图片...',
            'cancelImg': '@Url.Content("~/Content/themes/uploadify/uploadify-cancel.png")',
            'uploader': '/Admin/Param/Upload',
            'auto': true,
            'onUploadSuccess': function (file, data, response) {
                eval("data=" + data);
                $("#CompanyLog").val(data.msg);
                $("#logoImage").attr("src", data.msg);
            }
        });
        $("#logoImage").attr("src", $("#CompanyLog").val());
    });      
</script>
<legend>@ViewBag.Title (基本信息)</legend>
<div class="control-group">
    <label class="control-label">
        站点名称</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SiteName, new { @placeholder = "站点名称" })
        @Html.ValidationMessageFor(model => model.SiteName)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        公司名称</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.CompanyName, new { @placeholder = "公司名称" })
        @Html.ValidationMessageFor(model => model.CompanyName)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        域名/网址</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.DomainName, new { @placeholder = " 域名/网址" }) <span
            class="label label-important">公司网址</span>
        @Html.ValidationMessageFor(model => model.DomainName)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        Log</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.CompanyLog, new { @placeholder = "公司Log" })
        <input type="file" name="file_upload" id="file_upload" />
        <img id="logoImage" alt="图片缩放显示" src="" style="" />
        @Html.ValidationMessageFor(model => model.CompanyLog)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        电话</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Telphone, new { @placeholder = "电话" })
        @Html.ValidationMessageFor(model => model.Telphone)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        传真</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Fax, new { @placeholder = "传真" })
        @Html.ValidationMessageFor(model => model.Fax)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        管理员邮箱</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.AdminEmail, new { @placeholder = "管理员邮箱" }) <span
            class="label label-important">网站管理员邮箱</span>
        @Html.ValidationMessageFor(model => model.AdminEmail)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        备案号</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SiteNumber, new { @placeholder = "备案号" })
        @Html.ValidationMessageFor(model => model.SiteNumber)
    </div>
</div>
<legend>SEO 推广</legend>
<div class="control-group">
    <label class="control-label">
        SEO 标题</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.SeoTitle, new { @placeholder = " SEO 标题" })
        @Html.ValidationMessageFor(model => model.SeoTitle)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        SEO 关键字</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.SeoKeyWords, new { @placeholder = "SEO 关键字" })
        @Html.ValidationMessageFor(model => model.SeoKeyWords)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        SEO 描述</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.SeoDescription, new { @placeholder = "SEO 描述" })
        @Html.ValidationMessageFor(model => model.SeoDescription)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        版权</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.CopyRight, new { @placeholder = "版权" })
        @Html.ValidationMessageFor(model => model.CopyRight)
    </div>
</div>
<legend>邮件服务设置</legend>
<div class="control-group">
    <label class="control-label">
        Smtp 服务器</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SmtpServer, new { @placeholder = "Smtp 服务器" })
        @Html.ValidationMessageFor(model => model.SmtpServer)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        端口</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SmtpPort, new { @placeholder = "端口" })
        @Html.ValidationMessageFor(model => model.SmtpPort)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        发件地址</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SenderAddress, new { @placeholder = "发件地址" })
        @Html.ValidationMessageFor(model => model.SenderAddress)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        邮件账户</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SenderAccount, new { @placeholder = "邮件账户" })
        @Html.ValidationMessageFor(model => model.SenderAccount)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        邮件密码</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SenderPwd, new { @placeholder = "邮件密码" })
        @Html.ValidationMessageFor(model => model.SenderPwd)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        发送人</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.SenderName, new { @placeholder = "发送人" })
        @Html.ValidationMessageFor(model => model.SenderName)
    </div>
</div>
<legend>其它</legend>
<div class="control-group">
    <label class="control-label">
        排序号</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Sequence, new { @placeholder = "排序号" })
        @Html.ValidationMessageFor(model => model.Sequence)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        是否隐藏/锁定</label>
    <div class="controls">
        <label class="checkbox">
            @Html.CheckBoxFor(model => model.IsDisable)
            @Html.ValidationMessageFor(model => model.IsDisable)
        </label>
    </div>
</div>
<div class="control-group">
    <div class="controls">
        <button type="submit" class="btn">
            保 存</button>
    </div>
</div>
